import request from '../utils/request';
import { API_PREFIX } from '../constants';
import qs from 'qs'

export async function loginRequest(params) {
  return request(`${API_PREFIX}/login`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' },
    body: qs.stringify(params)
  })
}
export async function checkLogin() {
  return request(`${API_PREFIX}/checkLogin`)
}
